package com.heatingcharge.entity.pay;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * Description: 支付宝配置
 * User: Devin
 * Date: 2019-12-18
 * Time: 10:05
 */
@Component
@Data
@PropertySource("classpath:dev/wxpay.properties")
@ConfigurationProperties(prefix = "wxpay")
public class WxPayBean {
    private String appId;
    private String appSecret;
    private String mchId;
    private String partnerKey;
    private String certPath;
    private String domain;

    @Override
    public String toString() {
        return "WxPayBean{" +
                "appId='" + appId + '\'' +
                ", appSecret='" + appSecret + '\'' +
                ", mchId='" + mchId + '\'' +
                ", partnerKey='" + partnerKey + '\'' +
                ", certPath='" + certPath + '\'' +
                ", domain='" + domain + '\'' +
                '}';
    }
}
